package com.li.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.li.client.entities.BookInfo;
import com.li.client.entities.User;

@RemoteServiceRelativePath("dataService")
public interface DataService extends RemoteService {
	public User getCurrentUser();
	
	public List<BookInfo> getAllBookInfo();
	
	public Boolean borrowBook(String userId, String isbnCode);
	
	public Boolean returnBook(Integer pkUserId, Integer pkBookId);
	
	public User getUserByUserId(String userId);
	
	public BookInfo getBookByISBN(String isbnCode);
	
	public Integer getBookInStock(final String isbnCode);
	
	public User loginSystem(String loginId, String pwd);
}
